import type { PlanetPin } from "@scvzerng/esi-163/dist/types/esi/plants/model/PlanetLayout";
import type { UniverseType } from "../../../sde/entity";

export abstract class AbstractPlantStruct {
  /**
   * 名称
   */
  name: string;
  /**
   * 编号
   */
  id: number;

  type: UniverseType;

  groupId: number;
  /**
   * 安装时间
   */
  installTime?: string;

  protected constructor(pin: PlanetPin, type: UniverseType) {
    this.installTime = pin.install_time;
    this.id = type.id;
    this.type = type;
    this.name = type.name;
    this.groupId = type.groupId;
  }
}
